
<style type="text/css">
    #tags {line-height:26px;margin:5px 0 0 0;border-bottom:1px solid #eee;height:30px;}
    .taglist {float:left;}
    .taglist a {
        background: url("images/tag.png") no-repeat scroll 0 0 transparent;
        border-radius: 2px 2px 2px 2px;
        border-right: 1px solid #D1C8B8;
        color: white;
        display: block;
        float: left;
        font-size: 11px !important;
        height: 14px;
        margin: 3px 4px 1px 0;
        padding: 1px 4px 2px 11px;
        text-decoration: none;
        text-shadow: -1px -1px 0 #B2AA9D;
        text-transform: uppercase;
        line-height: 125%;
    }
    .taglist a:hover, .taglist a:active {
        background-position: 0 -17px;
        border-color: #E46700;
        text-shadow: none;
    }
    .actarea {color:#aaa;margin:0;display:block;float:left;}
    .bbscontent {display:block;clear:both;margin:0px 0 10px 0;font-size:14px;}
    .bbscontent {line-height:22px;}

    a.avatar {border-radius: 3px;padding:2px;}
    .subinfo {float:left;}
    .subinfo h2 {
        margin:0 0 5px 0;color: #444;
        font-size: 18px;
        font-family: \5FAE\8F6F\96C5\9ED1;
        line-height: 30px;
    }
    .subinfo p {color:#777;}

    table.data tr.replylist td{padding:10px;color:#666}
    .replybody {position: relative;}
    .replyface {height:30px;width:30px;}
    .replyface img{border-radius: 3px;}
    .replyauthor {margin:2px 0 5px 0;}
    .replycontent {line-height:22px;margin-top:5px;color:#777;font-size:14px;}
    .replyfloor {position:absolute;top:13px;right:10px;color:#aaa;}
    #achieve .xheLayout td, #postnew .xheLayout td{padding:0;}

</style>
<div class="p-head">
    <b class="c3">论坛</b>
    <div class="r">
        <a href="/bbs/index/3/" class="ajax" title="意见反馈">意见反馈</a>
    </div>
    <div id="desc">
        记录每天生活的点点滴滴。。。
    </div>
</div>
<div class="tabs_t tabs_n">
    <ul class="ajax">
        <?php foreach (get_category_list('bbs', 0, array(array('id' => 0, 'name' => '全部')), 0) as $k => $v) { ?>
            <li class="<?= $show['category_id'] == $v['id'] ? "current" : '' ?>"><a href="/bbs/index/<?= $v['id'] ?>/" sid="<?= $v['id'] ?>"><?= $v['name'] ?></a></li>
        <?php } ?>
    </ul>
    <span class="r clear">
        <a href="/bbs/reply_add/<?= $show['id'] ?>/" title="发表回复" id="fastreply" class="btn btn_g_s dialog" close="true" callback="reply_callback"><span><b class=""></b><em><ins><?= $show['replies'] ?></ins> 回复</em></span></a>
        <a href="/bbs/add/" title="发表新贴" class="btn btn_s dialog" close="true" callback="bbs_callback"><span><b class="icon icon-edit"></b><em>发表新贴</em></span></a>
    </span>
</div>
<div id="bbs">
    <table class="data" cellpadding="0" cellspacing="1" width="100%" style="margin-top:5px;">
        <tbody>
            <tr>
                <td width="56" valign="top">
                    <a class="thumbnail avatar" href="javascript:void(0);">
                        <img src="<?= get_user_face($show['user']['id'], $show['user']['face']) ?>" alt="楼主图像" height="50" width="50" />
                    </a>
                </td>
                <td coplspan="2" class="subinfo">
                    <h2><?= $show['title'] ?></h2>
                    <p><a href="javascript:;"><?= $show['nickname'] ?></a> 发表于 <?= format_time($show['createtime'], true) ?></p>

                </td>
            </tr>
            <tr>
                <td colspan="4" style="background:#fff;">
                    <div class="bbscontent">
                        <?= $show['content'] ?>
                    </div>
                    <div id="tags">
                        <div class="actarea" style="float:right;">
                            <a href="/bbs/edit/<?= $show['id'] ?>/" class="dialog" callback="bbs_edit_callback" close="true" title="编辑帖子">编辑</a> | 
                            <!--<a href="/">分享</a> | 
                            <a href="/">收藏</a> | -->
                            <a href="/bbs/index/<?= $show['category_id'] ?>/" class="ajax">返回列表</a>
                        </div>
                    </div>
                </td>
            </tr>
            <tr><td colspan="4" id="reply_list">
                    <?= $reply_list ?>
                </td>
            </tr>

            <tr>
                <td colspan="4" style="background:#fff;">
                    <h5 style="margin:5px 0;font-size:14px;">发表回复</h5>
                    <form class="validform" id="normalreply" action="/bbs/reply_add/<?= $show['id'] ?>/">
                        <textarea name="content" class="textarea" style="padding:0;margin:5px 0;" id="" cols="60" rows="5"></textarea><br />
                        <button type="submit" class="btn btn_g_s"><span><b class="icon icon-edit"></b><em>提交</em></span></button>
                        <button type="reset" class="btn btn_w_s"><span><b class=""></b><em>重置</em></span></button>
                    </form>
                </td>
            </tr>
        </tbody>
    </table>
</div>
<a href="/bbs/reply/<?= $show['id'] ?>/9999/" class="ajax" output="#reply_list" id="get_last_reply"></a>
<a href="/bbs/show/<?= $show['id'] ?>/" class="ajax" id="get_post_url"></a>
<script type="text/javascript">
    KS.common.load('bbs.show');
</script>